#!/usr/bin/expect

set timeout 30
spawn ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" 5genm@17.168.145.206 -p 8345 SendAlarms Agent1 -hbint 6
expect {
"yes/no" { send "yes\r"; exp_continue}
"assword:" { send "Gansulzct@123\r"}
}
interact

